clear all
close all

A=double(imread('pool.tif'));
R=A(:,:,1);
G=A(:,:,2);
B=A(:,:,3);

Y = 0,299*R+0,587*G+0,114*B;
Cb=0,564*(B-Y)+128;
Cr=0,713*(R-Y)+128;

figure, imshow(uint8(A))
figure, imshow(uint8(R))
figure, imshow(uint8(G))
figure, imshow(uint8(B))
figure, imshow(uint8(Y))
figure, imshow(uint8(Cb))
figure, imshow(uint8(Cr))